{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static django_bootstrap5 tz %}
{% block title %}
    {% if slides_sp %}
        Revise
    {% else %}
        Upload new
    {% endif %}
    slides for {{ session.meeting }} : {{ session.group.acronym }}
{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        {% if slides_sp %}
            Revise
        {% else %}
            Upload new
        {% endif %}
        slides for {{ session.meeting }}        <br>
        <small class="text-body-secondary">
            {{ session.group.acronym }}
            {% if session.name %}: {{ session.name }}{% endif %}
        </small>
    </h1>
    {% if session_number %}
        <h2 class="mt-3">
            Session {{ session_number }} : {{ session.official_timeslotassignment.timeslot.time|timezone:session.meeting.time_zone|date:"D M-d-Y Hi" }}
        </h2>
    {% endif %}
    {% if not manage %}
    <p class="alert alert-info my-3">
        This form will allow you to propose a slide deck to the session chairs. After you upload your proposal, mail will be sent to the session chairs asking for their approval.
    </p>
    {% endif %}
    {% if slides_sp %}<h3>{{ slides_sp.document.name }}</h3>{% endif %}
    <form class="my-3" enctype="multipart/form-data" method="post">
        {% csrf_token %}
        {% bootstrap_form form %}
        <button type="submit" class="btn btn-primary">Upload</button>
    </form>
{% endblock %}